package com.example.blog.module.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author zjx
 * @since 2023-04-10
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("ms_message")
public class Message implements Serializable {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 发送消息的用户id
     */
    private Long fromId;

    /**
     * 接收消息的用户id
     */
    private Long toId;

    /**
     * 会话id 拼接 小的在前面
     */
    private String conversationId;

    /**
     * 消息的文本
     */
    private String content;

    /**
     * 消息的状态
     */
    private Long status;

    /**
     * 创建时间
     */
    private Date createTime;


}
